import React from 'react'
import Home from '../pages/home/home'
import { Route, Redirect } from 'react-router-dom'
import List1 from '../pages/list/list-1/list1'
import List2 from '../pages/list/list-2/list2'
import Start from '../pages/other/start/start'
import Close  from '../pages/other/close/close'
function RouteMap() {
  return (
    <div>
      <Route path="/admin/home" component={Home} />
      <Route exact path="/admin/list/list1" component={List1} />
      <Route exact path="/admin/list/list2" component={List2} />
      <Route exact path="/admin/other/start" component={Start} />
      <Route exact path="/admin/other/close" component={Close} />
      <Redirect to="/admin/home" />
    </div >
  )
}
export default RouteMap